package com.windpicker.sleep.general;

/**
 * @author Angus Xiao
 * 接口层返回的统一结果
 */
public class Result<T> {
	public static int SUCCESS = 0;
	public static int ERROR = 1;
	public static int LOGIN = 2;
	public static int EXCEPTION = 3;
	
	private int c;
	private String i;
	private T r;
	
	public Result(int c, String i, T r){
		this.c = c;
		this.i = i;
		this.r = r;
	}
	
	public Result(){}
	
	public int getC() {
		return c;
	}
	public void setC(int c) {
		this.c = c;
	}
	public String getI() {
		return i;
	}
	public void setI(String i) {
		this.i = i;
	}
	public T getR() {
		return r;
	}
	public void setR(T r) {
		this.r = r;
	}
}